<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增管理员</title>
<link rel="stylesheet" href="framework/css/form.css" type="text/css">
<script type="text/javascript" src="framework/js/checknum.js"></script>
</head>
<body>
	<c:if test="${requestScope.roleList==null}">
		<c:redirect url="addAdminPrepare_acc" />
	</c:if>
	<h2>添加管理员</h2>
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td align="center"><span style="color: #CE3C4F">${requestScope.message}</span>
				<br>
				<form id="addAdmin" name="addAdmin" action="addAdmin_acc"
					method="post">
					<table width="70%" border="0">
						<tr>
							<td width="30%" align="right">用户名:</td>
							<td width="70%" align="left"><input type="text"
								name="admin.name" maxlength="45">*</td>
						</tr>
						<tr>
							<td width="30%" align="right">密 码:</td>
							<td width="70%" align="left"><input type="text"
								name="admin.pass" maxlength="45"></td>
						</tr>
						<tr>
							<td width="30%" align="right">手机号码:</td>
							<td width="70%" align="left"><input type="text"
								name="admin.phone" maxlength="20"
								onKeyUp="this.value=this.value.replace(/\D/g,'')"
								onmouseout="checkTel(this)"></td>
						</tr>
						<tr>
							<td width="30%" align="right">角 色:</td>
							<td width="70%" align="left"><select name="admin.role.id">
									<c:forEach var="role" items="${request.roleList}">
										<option value="${role.id}">${role.roleName}</option>
									</c:forEach>
							</select></td>
						</tr>
					</table>
					<div class="bo" align="right">
						<input type="submit" value="提交">&nbsp;&nbsp;<input type="reset"
							value="重置">
					</div>
				</form></td>
		</tr>
	</table>
</body>
</html>